package phoenics.manpads.common.mybatis.page.dialect;

import phoenics.manpads.common.mybatis.page.Dialect;

/**
 * mysql 方言
 *
 * @author Phoenics Chow
 * on 2018年12月10日
 */
public class MysqlDialect implements Dialect {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MysqlDialect.class);

    @Override
    public String buildPaginationSql(String originalSql, long offset, long limit) {
        return originalSql + " LIMIT " +offset +" , "+ " " +limit;
    }
}
